import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);
const store = new Vuex.Store({
  state: {
    userRoot: null, //用户权限
    unreadMsg: null, //未读消息
  },
  mutations: {
    userRoot(state, payload) {
      state.userRoot = payload;
    },
    unreadMsg(state, payload) {
      state.unreadMsg = payload;
    },
  },
  getters: {

  },
  actions: {

  }
});

export default store;
